package com.senchen365.oam.web.servlet;

import com.senchen365.test.Test;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p> Title: TestServlet </p>
 * <p> Description: TODO (简单的一句话说明此类的功能) </p>
 *
 * @author ：zjl
 * @创建时间 ：2021/3/26
 * @版本 1.0
 * @修改记录 <pre>
 * 版本   修改人    修改时间    修改内容描述
 * ----------------------------------------
 * </pre>
 */
@WebServlet("/webServlet")
public class TestServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Test test = new Test();
        req.setAttribute("msg",test.test());
        req.getRequestDispatcher("/index.jsp").forward(req,resp);
    }
}
